home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 406_01 / disked25 / source / general.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-13  |  842 b   |  41 lines

  1. /***
  2. *general.h - definitions/declarations for general C programs
  3. *
  4. *   Copyright (c) 1992-1994, Gregg Jennings.  All wrongs reserved.
  5. *
  6. *Purpose:
  7. *   This file defines the values and macros for general purposes
  8. *   that are not in STDIO.H
  9. *   [ANSI/System V]
  10. *
  11. *******************************************************************************/
  12.  
  13. #ifndef GENERAL_H
  14.  
  15. #define GENERAL_H
  16.  
  17. /* compiler dependencies */
  18.  
  19. #if defined(_MSC_VER)
  20. # if defined(M_I86LM) || defined(M_I86CM)       /* determine memory model */
  21. #  define __LARGE__
  22. # endif
  23. #elif defined(__BORLANDC__)
  24.  
  25. #else  /* other compiler */
  26.  
  27. #endif
  28.  
  29. #define OK    1
  30. #define FALSE 0
  31. #define TRUE  1
  32. #define ERROR (-1)
  33. #define ABORT (-2)
  34. #define ESC   0x1b
  35.  
  36. typedef unsigned int word;
  37. typedef unsigned long dword;
  38. typedef unsigned char byte;
  39.  
  40. #endif
  41.